﻿using DTcms.Common;

namespace DTcms.Web.Mvc.UI.Page
{
    public partial class search : BaseController
    {
        protected string keyword = string.Empty; //关健字
        protected int page; //当前页码
        protected string tags;//关健字
        protected int channel_id = 0;  //频道ID
        protected int category_id;//类别ID

        /// <summary>
        /// 重写虚方法,此方法将在Init事件前执行
        /// </summary>
        public search()
        {
            page = DTRequest.GetQueryInt("page", 1);
            keyword = Utils.SafeXXS(DTRequest.GetQueryString("keyword"));
            tags = DTRequest.GetQueryString("tags").Replace("'", string.Empty);
            channel_id = DTRequest.GetQueryInt("channel", 0);//是否指定搜索频道
            category_id = DTRequest.GetQueryInt("category_id");//是否指定搜索类别
        }
    }
}
